import React, { Component } from 'react'
import {observer} from 'mobx-react'
import todo from '../store/store'

@observer
class MobxIndex extends Component {
    render() {
        return (
            <div>
                <h1>这是测试MOBX</h1>
                <p>{todo.id}</p>
                <p>{todo.title}</p>
                <button onClick={todo.cTtitle}>点击改变</button>
            </div>
        )
    }
}
export default MobxIndex;